﻿<%@ Page Title="【大乐透投注】" Language="C#" MasterPageFile="~/APP_Master/MasterPageIndex.master"
    AutoEventWireup="true" CodeFile="BigLotteryTuoDan.aspx.cs" Inherits="BigLotteryTuoDan" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<link href="css/webstyle.css" rel="stylesheet" type="text/css" />

 <style>
.top_bg{background:#c41921;}
.top_bg a{color:#fff;}
.top_list{background:#c41921;color:#fff;text-align:center;height:40px;line-height:40px;font-size:14px;float:left;padding:0 30px;}
.top_list1{color:#fff;text-align:center;height:40px;line-height:40px;font-size:14px;background:url(images/kjdb_icon2.jpg) no-repeat center bottom #fd2e37;float:left;padding:0 30px;}
.wh{border:solid 1px #e5e5e5;}
.wh1 {border:solid 1px #c7b0b7;height:26px;line-height:26px;}
.wh2 {display:block;float:left;text-align:center;padding:0 12px;color:#3a3a3a;font-size:14px;}
.wh3 {display:block;float:left;text-align:center;padding:0 12px;color:#fff;font-size:14px;background:#c41921;}
.fxui-tab {}
.fxui-tab-hand {border-top:solid 1px #e1e1e1;}
.fxui-tab-tit {width:109px;display: block; float: left; height: 34px; line-height: 34px;  cursor: pointer; background:#f2f2f2;text-align:center;border-left:solid 1px #e1e1e1;border-bottom:solid 1px #e1e1e1;}
.fxui-tab-hand .curr {background: #fff; color:#c41921;}
.fxui-tab-nav {}
  
</style>

 <script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
 <script type="text/javascript" src="App_Themes/js/jquery.fxTab.js"></script>

<script type="text/javascript">

    var ArrayList = new Array();
    var myRedArray = new Array();
    var myBlueArray = new Array();
    var myRedTDArray = new Array();
    var myBlueTDArray = new Array();
    
    window.num;
    var QS6 = "";
    var QS5 = "";
    var QS4 = "";
    var QS3 = "";
    var QS2 = "";
    var QS1 = "";
    //保存扩展查询6个等级是否点过
    var ArrayNG = new Array();
    var aaa = 0;
    var allNO = "";
    var show6 = 1;
    var show5 = 1;
    var show4 = 1;
    var show3 = 1;
    var show2 = 1;
    var show1 = 1;

    //每页数量
    var pagecount = 10;

    if (getCookie("ArrayListBigLotto") != '') {
        var arrarraylist = eval(getCookie("ArrayListBigLotto"))
        //console.log(arrarraylist);
        for (j = 0; j < arrarraylist.length ; j++) {
            ArrayList.push(arrarraylist[j]);
        }
    }

    var count = 0;

    $(document).ready(function () {

        //alert(getCookie("cookiesBigLotto"));
        var cookiesBigLotto = getCookie("cookiesBigLotto");
        var arrCookie = cookiesBigLotto.split(",");
        var cookie_html = "";
        //alert(arrCookie);
        for (var i = 0; i < arrCookie.length; i++) {

            var arrBallorCount = arrCookie[i].split("||");
            var arrRedorBlue = arrBallorCount[0].split("+");
            //把*替换成，号
            var replace = arrRedorBlue[0].replace(/\*/g, ",");

            if ($.inArray("$", replace) == -1) {

                cookie_html += "<li> <span class='fl' style='width:570px;'><b>投注</b>"
                + " <b class='db_text1' style='font-weight:normal'>" + replace + " +<span class='db_text2'>" + arrRedorBlue[1] + "</span></b> "
                + "[" + arrBallorCount[1] + "注," + arrBallorCount[2] + "元]</span>"
                + "<a href='JavaScript:void(0);' onclick='javascript:Delete(this);'>删除</a>"
                + "<a href='BigLotto.aspx' onclick='javascript:tiaoye(this);'>修改</a>"
                + "<a href='JavaScript:void(0);' onclick='javascript:ToContrast(this,1);'>对比</a><div style='clear:both'></div></li>";

            } else {

                cookie_html += "<li> <span class='fl' style='width:570px;'><b>投注</b>"
                + " <b class='db_text1' style='font-weight:normal'>" + replace + " +<span class='db_text2'>" + arrRedorBlue[1] + "</span></b> "
                + "[" + arrBallorCount[1] + "注," + arrBallorCount[2] + "元]</span>"
                + "<a href='JavaScript:void(0);' onclick='javascript:Delete(this);'>删除</a>"
                + "<a href='JavaScript:void(0);' onclick='javascript:Update(this);'>修改</a>"
                + "<a href='JavaScript:void(0);' onclick='javascript:ToContrast(this,1);'>对比</a><div style='clear:both'></div></li>";

            }

            
            
        }

        if (cookiesBigLotto !== "") {
            $(".db_k").html(cookie_html);
        }
        if (sessionStorage["par1"] != undefined && sessionStorage["par1"] != "") {
            Update(sessionStorage["par1"]);
        }

    });

    function tiaoye(obj) {
       
        if (obj == 0) {
            window.location.href = 'BigLotto.aspx';
        } else if (obj == 1) {
            window.location.href = '#';
        } else {
            //alert($(obj).parent().children().children(".db_text1").text());
            sessionStorage["par2"] = $(obj).parent().children().children(".db_text1").text();
        }
    }

    function addRedBall(obj, value, type, TDorNO) {

        if (parseInt(value) <= 9) {
            value = "0" + parseInt(value);
        }
        var value =$.trim(value) 
        if (type == 0) {
            var index = $.inArray(value, myRedArray);//inArray 在数组中搜索指定的值，并返回其索引值。如果数组中不存在该值，则返回 -1。
            var index1 = $.inArray(value, myRedTDArray);
            if (TDorNO == 0) {
                if (index > -1) {
                    myRedArray.splice(index, 1);//大于-1证明有该值，，则从数组中删除该值（删除的值，0不删除，1代表删除1个，2代表删除2个）
                    $("#RedBall" + parseInt(value)).toggleClass("ball_btn_active");
                } else if (index == -1) {
                    if (index1 > -1) {
                       // alert("value:" + value);
                        myRedTDArray.splice(index1, 1);
                        
                        $("#RedBall" + parseInt(value)).toggleClass("ball_btn_active");
                        $("#DanTuo" + parseInt(value)).attr("checked", false);
                    } else {
                        myRedArray.push(value);
                        $("#RedBall" + parseInt(value)).toggleClass("ball_btn_active");
                    }

                        
                }
                //$("#ZXRedBll").val(myRedArray);
                
            } else if (TDorNO == 1) {
                if ($("#DanTuo" + parseInt(value)).attr("checked") == "checked") {
                   
                    if (myRedTDArray.length > 4) {
                        $(obj).attr("checked", false);
                        alert('最多只能设置5个红球胆码！');
                        return;
                    }
                    if (index > -1) {
                        
                        myRedArray.splice(index, 1);
                        myRedTDArray.push(value);
                    }
                    else if (index == -1) {
                        myRedTDArray.push(value);
                        $("#RedBall" + parseInt(value)).toggleClass("ball_btn_active");
                    }
                }
                else {
                    
                    myRedTDArray.splice(index1, 1);
                    myRedArray.push(value);
                    
                }
            } 
           
        }
        if (type == 1) {
            var index = $.inArray(value, myBlueArray);
            var index1 = $.inArray(value, myBlueTDArray);

            if (TDorNO == 0) {
                if (index > -1) {
                    myBlueArray.splice(index, 1);//大于-1证明有该值，，则从数组中删除该值（删除的值，0不删除，1代表删除1个，2代表删除2个）
                    $("#BlueBall" + parseInt(value)).toggleClass("ball_btn_active");
                } else if (index == -1) {
                    if (index1 > -1) {
                        // alert("value:" + value);
                        myBlueTDArray.splice(index1, 1);

                        $("#BlueBall" + parseInt(value)).toggleClass("ball_btn_active");
                        $("#DanTuoBlue" + parseInt(value)).attr("checked", false);
                    } else {
                        myBlueArray.push(value);
                        $("#BlueBall" + parseInt(value)).toggleClass("ball_btn_active");
                    }
                }
                //$("#ZXRedBll").val(myRedArray);

            } else if (TDorNO == 1) {
                if ($("#DanTuoBlue" + parseInt(value)).attr("checked") == "checked") {

                    if (myBlueTDArray.length > 0) {
                        $(obj).attr("checked", false);
                        alert('最多只能设置1个蓝球胆码！');
                        return;
                    }
                    if (index > -1) {

                        myBlueArray.splice(index, 1);
                        myBlueTDArray.push(value);
                    }
                    else if (index == -1) {
                        myBlueTDArray.push(value);
                        $("#BlueBall" + parseInt(value)).toggleClass("ball_btn_active");
                    }
                }
                else {

                    myBlueTDArray.splice(index1, 1);
                    myBlueArray.push(value);

                }
            }

            //if (index > -1) {
            //    myBlueArray.splice(index, 1);
            //} else {
            //    myBlueArray.push(value);
            //}
            //$("#ZXBlueBll").val(myBlueArray);
            //$("#BlueBall" + parseInt(value)).toggleClass("ball_btn_active");
           
        }
        
        $("#RedLength").html(myRedArray.length + myRedTDArray.length);
        $("#BlueLength").html(myBlueArray.length + myBlueTDArray.length);
        
        $("#DMLength").html(myRedTDArray.length);
        $("#TMLength").html(myRedArray.length);

        $("#DMBlueLength").html(myBlueTDArray.length);
        $("#TMBlueLength").html(myBlueArray.length);
        
        var aa = myRedArray.length;
        var bb = myRedTDArray.length;

        //count = parseInt(fibonacci(aa) / fibonacci(6 - bb) / fibonacci(aa - 6 + bb)) * myBlueArray.length;
        count = parseInt(fibonacci(aa) / fibonacci(5 - bb) / fibonacci(aa - 5 + bb)) * (myBlueArray.length)*(myBlueTDArray.length);

        $("#BettingCount").html(count);
        $("#PriceCount").html(count * 2);
       
    }
    function fibonacci(n) {
        var rtn = 1;
        if (n > 1) {
            var i = 1;
            while (i <= n) {
                rtn = rtn * i;
                i++;
            }
        }
        return rtn;
    }

    function Update(obj) {
        
        var number = $(obj).parent().children().children(".db_text1").text().replace(/\s/g, "");
        number = number.replace(/\s/g, "");
        window.num = number;
        //alert(number)
        if (window.num == "") {
            
            window.num = obj.replace(/\s/g, "");
        }
       
        $(".kjdb_btn").val("确认修改");

        for (var k = 0; k < myRedTDArray.length; k++) {
            $("#DanTuo" + parseInt(myRedTDArray[k])).attr("checked", false);
        }
        $("#DanTuoBlue" + parseInt(myBlueTDArray[0])).attr("checked", true);
        
        myBlueArray = new Array();
        myRedArray = new Array();
        myRedTDArray = new Array();
        myBlueTDArray = new Array();
        $(".ball_btn_active").removeClass("ball_btn_active");
        
        if (getCookie('ArrayListBigLotto') != '') {
            ArrayList = eval(getCookie('ArrayListBigLotto'));
        }
       
        var num = window.num;
        
        var Allball = num.split("+");
        var allRedBall = Allball[0].split(",");
        var allBuleBall = Allball[1].replace(/,/g, "*").split("$");
        var BlueTDBall = allBuleBall[0];
        var BlueBall = allBuleBall[1].split("*");

        var Allred = Allball[0].split("$");
        var redTd = Allred[0].split(",");
        var red = Allred[1].split(",");
        //alert(redTD[0]); alert(redTD[1]);
        for (var i = 0; i < red.length; i++) {
            
            $("#RedBall" + parseInt(red[i])).toggleClass("ball_btn_active");
            myRedArray.push($.trim(red[i]));
        }
        for (var k = 0; k < redTd.length; k++) {
            //alert(redTd[k]);
            $("#RedBall" + parseInt(redTd[k])).toggleClass("ball_btn_active");
            $("#DanTuo" + parseInt(redTd[k])).attr("checked", true);
            myRedTDArray.push(redTd[k]);
        }
        
        //alert(allBuleBall)
        for (var j = 0; j < BlueBall.length; j++) {

            $("#BlueBall" + parseInt(BlueBall[j])).toggleClass("ball_btn_active");
            myBlueArray.push(BlueBall[j]);
        }

        $("#BlueBall" + parseInt(BlueTDBall)).toggleClass("ball_btn_active");
        $("#DanTuoBlue" + parseInt(BlueTDBall)).attr("checked", true);
        myBlueTDArray.push(BlueTDBall);

        $("#RedLength").html(red.length + redTd.length);
        $("#DMLength").html(myRedTDArray.length);
        $("#TMLength").html(myRedArray.length);

        $("#BlueLength").html(allBuleBall.length);
        $("#DMBlueLength").html(myBlueTDArray.length);
        $("#TMBlueLength").html(myBlueArray.length);

        var aa = myRedArray.length;
        var bb = myRedTDArray.length;
      
        count = parseInt(fibonacci(aa) / fibonacci(5 - bb) / fibonacci(aa - 5 + bb)) * (myBlueArray.length) * (myBlueTDArray.length);
        
        
        $("#BettingCount").html(count);
        $("#PriceCount").html(count * 2);
        sessionStorage["par1"] = "";
    }

    function Delete(obj) {
        if (getCookie('ArrayListBigLotto') != '') {
           
            ArrayList = eval(getCookie('ArrayListBigLotto'));
          
        }
        $(obj).parent().remove();
        num = $(obj).parent().children().children(".db_text1").text();
        //alert("num:"+num);
        num = num.replace(/\s/g, "");
        num = num.replace(/,/g, "*");
        var index = $.inArray(num, ArrayList);
        //alert(num); alert(ArrayList); alert(index);
       // alert("index:" + index + "   num:" + num + "  ArrayList:" + ArrayList);
        var arrCookie = getCookie("cookiesBigLotto").split(",");
        var strnnum = arrCookie[index].split("||");
       
        if (index != -1) {
            ArrayList.splice(index, 1);
            arrCookie.splice(index, 1);
        }
        //alert("cookiesBigLotto:" + arrCookie);
        
        setCookie("cookiesBigLotto", arrCookie, 365);
        var json = JSON.stringify(ArrayList);
        setCookie("ArrayListBigLotto", json, 365);

        myRedArray = new Array();
        myBlueArray = new Array();
        myRedTDArray = new Array();
        myBlueTDArray = new Array();

        $(":checked").attr("checked", false);
        $("#RedLength").html("0");
        $("#DMLength").html(myRedTDArray.length);
        $("#TMLength").html(myRedArray.length);
        $("#BlueLength").html("0");
        $("#BettingCount").html("0");
        $("#PriceCount").html("0");
        $(".ball_btn_active").removeClass("ball_btn_active");
        $(".kjdb_btn").val("确认选号");
    }

    //清空选中的篮球或红球
    function ClaerRedorBlue(type) {
        if (type == 0) {
            
            $(".red").attr("checked", false);
            
            var ClearRed = myRedArray.toString().split(",");
            var ClearRedTD = myRedTDArray.toString().split(",");
            for (var i = 0; i < ClearRed.length; i++) {
                
                $("#RedBall" + parseInt(ClearRed[i])).toggleClass("ball_btn_active");
            }
            for (var i = 0; i < ClearRed.length; i++) {

                $("#RedBall" + parseInt(ClearRedTD[i])).toggleClass("ball_btn_active");
            }
            
            myRedArray = new Array();
            myRedTDArray = new Array();
            $("#RedLength").html("0");
            $("#DMLength").html(myRedTDArray.length);
            $("#TMLength").html(myRedArray.length);

        } else if (type == 1) {
            
            $(".blue").attr("checked", false);
            $("#BlueBall" + parseInt(myBlueTDArray[0])).toggleClass("ball_btn_active");
            var ClearBlue = myBlueArray.toString().split(",");
            for (var i = 0; i < ClearBlue.length; i++) {
                $("#BlueBall" + parseInt(ClearBlue[i])).toggleClass("ball_btn_active");
            }

            myBlueArray = new Array();
            myBlueTDArray = new Array();
            $("#BlueLength").html("0");
            $("#DMBlueLength").html("0");
            $("#TMBlueLength").html("0");
        }

        $("#BettingCount").html("0");
        $("#PriceCount").html("0");

    }
   
    function ClearCookie() {
        //alert("cookiestr_double_betting:" + getCookie("cookiestr_double_betting"));
        //alert("cookiestr_double_betting_arrcount:" + getCookie("cookiestr_double_betting_arrcount"));
        //alert("ArrayList:" + getCookie("ArrayList"));
        //setCookie("cookiestr_double_betting_arrcount", "", -1);

        setCookie("cookiesBigLotto", "", -1);
        setCookie("ArrayListBigLotto", "", -1);
        ArrayList = new Array();
        $(".db_k").html("");
    }

    //选号
    function ConfirmPick() {
        //alert(myBlueTDArray); alert(myBlueArray);
        if (myRedArray.length + myRedTDArray.length < 5 || myBlueArray.length + myBlueTDArray.length < 2) {
            alert("至少选择5个红球和2个蓝球");
        } else if (myRedTDArray.length < 1 || myBlueTDArray.length < 1) {
            alert("至少选择1个红球胆码和1个篮球胆码");

        } else if ($(".kjdb_btn").val() == '确认修改') {

            if (getCookie('ArrayListBigLotto') != '') {
                ArrayList = eval(getCookie('ArrayListBigLotto'));
            }
            var num = window.num;
            num = num.replace(/\s/g, "");
            num = num.replace(/,/g, "*");
            var index = $.inArray(num, ArrayList);
            //alert(ArrayList); 
            //alert(num); alert(index);
            $(".db_k li:eq(" + index + ")").remove();
            
            var arrCookie = getCookie("cookiesBigLotto").split(",");
           
            var strnnum = arrCookie[index].split("||");
           
            if (index != -1) {
                ArrayList.splice(index, 1);
                arrCookie.splice(index, 1);
                $(".kjdb_btn").val("确认选号");
            }
            //alert("cookiestr_double_betting:" + arrCookie);

            setCookie("cookiesBigLotto", arrCookie, 365);
            var json = JSON.stringify(ArrayList);
            setCookie("ArrayListBigLotto", json, 365);


            $(".db_k").append('<li> <span class="fl" style="width:570px;"><b>投注</b>'
                + " <b class='db_text1' style='font-weight:normal'>" + myRedTDArray + "$" + myRedArray + " +"
                + " <span class='db_text2'>" + myBlueTDArray + "$" + myBlueArray + "</span></b> "
                + '[' + count + '注,' + count * 2 + '元]</span>'
                + '<a href="JavaScript:void(0);" onclick="javascript:Delete(this);">删除</a>'
                + '<a href="JavaScript:void(0);" onclick="javascript:Update(this);">修改</a>'
                + '<a href="JavaScript:void(0);" onclick="javascript:ToContrast(this,1);">对比</a><div style="clear:both"></div></li>');
            

            $(".ball_btn_active").removeClass("ball_btn_active");


            var redStr = "";
            var blueStr = "";
            var fgf = "*";
            for (var j = 0; j < myRedTDArray.length; j++) {
                if (j == myRedTDArray.length - 1) {
                    fgf = "$";
                }
                redStr += myRedTDArray[j] + fgf;
            }
            $(":checked").attr("checked", false);

            for (var i = 0; i < myRedArray.length; i++) {
                redStr += myRedArray[i] + "*";
            }
            redStr = redStr.substring(0, redStr.length - 1);
            //alert(myBlueArray)
            blueStr += myBlueTDArray[0] + fgf;
            for (var i = 0; i < myBlueArray.length; i++) {
                blueStr += myBlueArray[i] + "*";
            }
            blueStr = blueStr.substring(0, blueStr.length - 1);

            ArrayList.push(redStr + "+" + blueStr);

            myRedArray = new Array();
            myBlueArray = new Array();
            myRedTDArray = new Array();
            myBlueTDArray = new Array();
            //alert(redStr + "123");
            $("#RedLength").html("0");
            $("#BlueLength").html("0");
            $("#BettingCount").html("0");
            $("#PriceCount").html("0");

            $("#DMLength").html("0");
            $("#TMLength").html("0");
            $("#DMBlueLength").html(myBlueTDArray.length);
            $("#TMBlueLength").html(myBlueArray.length);


            //保存到cookie
            var cookiestr = '';
            //分隔符
            var fgf = '';
            if (getCookie("cookiesBigLotto") != "") {
                cookiestr = getCookie("cookiesBigLotto");
                fgf = ",";
            }
            cookiestr += fgf + redStr + "+" + blueStr + "||" + count + "||" + count * 2;
            setCookie("cookiesBigLotto", cookiestr, 365);
            var json = JSON.stringify(ArrayList);
            setCookie("ArrayListBigLotto", json, 365);

        } else {
                $(".db_k").append('<li> <span class="fl" style="width:570px;"><b>投注</b>'
                    //+ '<span class="db_text1"> ' + myRedArray + '</span> + <span class="db_text2">' + myBlueArray + '</span> '
                     + " <b class='db_text1' style='font-weight:normal'>" + myRedTDArray + "$" + myRedArray + " +"
                     + " <span class='db_text2'>" + myBlueTDArray + "$" + myBlueArray + "</span></b> "
                    + '[' + count + '注,' + count * 2 + '元]</span>'
                    + '<a href="JavaScript:void(0);" onclick="javascript:Delete(this);">删除</a>'
                    + '<a href="JavaScript:void(0);" onclick="javascript:Update(this);">修改</a>'
                    + '<a href="JavaScript:void(0);" onclick="javascript:ToContrast(this,1);">对比</a><div style="clear:both"></div></li>');
            
            $(".ball_btn_active").removeClass("ball_btn_active");

            var redStr = "";
            var blueStr = "";
            var fgf = "*";
            for (var j = 0; j < myRedTDArray.length; j++) {
                if (j == myRedTDArray.length - 1) {
                    fgf = "$";
                }
                redStr += myRedTDArray[j] + fgf;
            }
            $(":checked").attr("checked", false);

            for (var i = 0; i < myRedArray.length; i++) {
                redStr += myRedArray[i] + "*";
            }
            redStr = redStr.substring(0, redStr.length - 1);

            blueStr += myBlueTDArray[0] + fgf;

            for (var i = 0; i < myBlueArray.length; i++) {
                blueStr += myBlueArray[i] + "*";
            }

            blueStr = blueStr.substring(0, blueStr.length - 1);

            ArrayList.push(redStr + "+" + blueStr);

            myRedArray = new Array();
            myBlueArray = new Array();
            myRedTDArray = new Array();
            myBlueTDArray = new Array();

            $("#RedLength").html("0");
            $("#BlueLength").html("0");
            $("#BettingCount").html("0");
            $("#PriceCount").html("0");

            $("#DMLength").html("0");
            $("#TMLength").html("0");

            $("#DMBlueLength").html(myBlueTDArray.length);
            $("#TMBlueLength").html(myBlueArray.length);

            //保存到cookie

            var cookiestr = '';
            //分隔符
            var fgf = '';
            if (getCookie("cookiesBigLotto") != "") {
                cookiestr = getCookie("cookiesBigLotto");
                fgf = ",";
            }
            cookiestr += fgf + redStr + "+" + blueStr + "||" + count + "||" + count * 2;
            setCookie("cookiesBigLotto", cookiestr, 365);
            var json = JSON.stringify(ArrayList);
            setCookie("ArrayListBigLotto", json, 365);

        }
    }

    /*
        num 要产生多少个随机数
        from 产生随机数的最小值
        to 产生随机数的最大值
        alert(createRandom2(10, 0, 50));//生成10个从0-50之间不重复的随机数
    */
    function RandomNumber(num, from, to) {
        var arr = [];
        var json = {};
        while (arr.length < num) {
            //产生单个随机数
            var ranNum = Math.ceil(Math.random() * (to - from)) + from;
            //通过判断json对象的索引值是否存在 来标记 是否重复
            if (!json[ranNum]) {
                json[ranNum] = 1;
                arr.push(ranNum);
            }

        }
        return arr;
    }

    function RandomRed(obj,RedNum,type) {
        var BallRandom = "";
       
        if (type == 0) {
            $(".red").attr("checked", false);
            var ClearRed = myRedArray.toString().split(",");
           
            for (var i = 0; i < ClearRed.length; i++) {

                $("#RedBall" + parseInt(ClearRed[i])).toggleClass("ball_btn_active");
            }
            for (var j = 0; j < myRedTDArray.length; j++) {
                $("#RedBall" + parseInt(myRedTDArray[j])).toggleClass("ball_btn_active");
            }
            myRedArray = new Array();
            myRedTDArray = new Array();
            BallRandom = RandomNumber(jQuery("#selectRed").val(), 1, 33);
            

        } else if (type == 1) {
            $(".blue").attr("checked", false);
            var ClearBlue = myBlueArray.toString().split(",");
            
            for (var i = 0; i < ClearBlue.length; i++) {
                $("#BlueBall" + parseInt(ClearBlue[i])).toggleClass("ball_btn_active");
            }
            //alert(myBlueTDArray);
            $("#BlueBall" + parseInt(myBlueTDArray[0])).toggleClass("ball_btn_active");
            
            myBlueArray = new Array();
            myBlueTDArray = new Array();
            BallRandom = RandomNumber(jQuery("#selectBlue").val(), 1, 12);
        }
        
       var arrBall = BallRandom.toString().split(",");
       var str = "";
      
       for (var i = 0; i < BallRandom.length; i++) {
           
           var Ball = BallRandom[i];
           
           if (parseInt(Ball) <= 9) {
               Ball = "0" + Ball;
               
           }
           str += Ball + ",";
           addRedBall(this, Ball, type,0);
       }
    }

    //创建cookies
    function setCookie(cname, cvalue, exdays) {
        var myDate = new Date();
        myDate.setTime(myDate.getTime() + (exdays * 24 * 60 * 60 * 1000));
        var expires = "expires=" + myDate.toUTCString();
        document.cookie = cname + "=" + cvalue + "; " + expires
       
    }

    function getCookie(cname) {
        var name = cname + "=";
        var ca = document.cookie.split(';');
        for (var i = 0; i < ca.length; i++) {
            var c = ca[i];
            while (c.charAt(0) == ' ') c = c.substring(1);
            if (c.indexOf(name) != -1) return c.substring(name.length,c.length);
        }
        return "";
    }

    function ChangeQS(count) {
        //alert($('input:radio:checked').val());
        var pageCount = document.getElementById("hidQS");
        if (count == 30) {
            $(".db_text3").html("30期对比结果");
        } else if (count == 50) {
            $(".db_text3").html("50期对比结果");
            
        } else if (count == 100) {
            $(".db_text3").html("100期对比结果");
           
        } else if (count == 300) {
            $(".db_text3").html("300期对比结果");
          
        } else if (count == 1) {
            //alert(count);

            $.ajax({
                url: "/Ajax/GetAllCountQS.ashx",
                type: "POST",
                data: { type: 2 },
                success: function (response) {
                    $(".db_text3").html(response + "期对比结果");
                }
            });

        }

    }

    function Cancel(num) {
        //alert(6);
        if (num == 6) {
            $("#sixDJ").show();
            $("#sixKZselect").hide();
            $("#cancel6").hide();
        } else if (num == 5) {
            $("#fiveDJ").show();
            $("#fiveKZselect").hide();
            $("#cancel5").hide();
        } else if (num == 4) {
            $("#fourDJ").show();
            $("#fourKZselect").hide();
            $("#cancel4").hide();
        } else if (num == 3) {
            $("#threeDJ").show();
            $("#threeKZselect").hide();
            $("#cancel3").hide();
        } else if (num == 2) {
            $("#twoDJ").show();
            $("#twoKZselect").hide();
            $("#cancel2").hide();
        } else if (num == 1) {
            $("#oneDJ").show();
            $("#oneKZselect").hide();
            $("#cancel1").hide();
        }
    }

    //扩展查询
    function ExtensionQuery(obj, num) {

        //alert(qs5 + "132");
        //alert(QS1);
        var KZQS = "";
        if (num == 6) {
            if ($.inArray(num, ArrayNG) > -1) {
                $("#sixDJ").hide();
                $("#sixKZselect").show();
                $("#cancel6").show();
                return;
            }
            KZQS = QS6;
            ArrayNG.push(num);
            $("#sixKZselect").html("");
        } else if (num == 5) {
            if ($.inArray(num, ArrayNG) > -1) {
                $("#fiveDJ").hide();
                $("#fiveKZselect").show();
                $("#cancel5").show();
                return;
            }
            KZQS = QS5;
            ArrayNG.push(num);
            $("#fiveKZselect").html("");
        } else if (num == 4) {
            if ($.inArray(num, ArrayNG) > -1) {
                $("#fourDJ").hide();
                $("#fourKZselect").show();
                $("#cancel4").show();
                return;
            }
            KZQS = QS4;
            ArrayNG.push(num);
            $("#fourKZselect").html("");
        } else if (num == 3) {
            if ($.inArray(num, ArrayNG) > -1) {
                $("#threeDJ").hide();
                $("#threeKZselect").show();
                $("#cancel3").show();
                return;
            }
            KZQS = QS3;
            ArrayNG.push(num);
            $("#threeKZselect").html("");
        } else if (num == 2) {
            if ($.inArray(num, ArrayNG) > -1) {
                $("#twoDJ").hide();
                $("#twoKZselect").show();
                $("#cancel2").show();
                return;
            }
            KZQS = QS2;
            ArrayNG.push(num);
            $("#twoKZselect").html("");
        } else if (num == 1) {
            if ($.inArray(num, ArrayNG) > -1) {
                $("#oneDJ").hide();
                $("#oneKZselect").show();
                $("#cancel1").show();
                return;
            }
            KZQS = QS1;
            ArrayNG.push(num);
            $("#oneKZselect").html("");
        }
        //alert(KZQS);
        $.ajax({
            url: "/Ajax/BigLotteryContrast.ashx",
            type: "post",
            //dataType: "text",
            data: {
                KZselect: num + '+' + KZQS
            },
            success: function (data, textStatus) {
                var str6 = "";
                if (num == 6) {
                    aaa = 6;
                    $("#sixDJ").hide();
                    $("#sixKZselect").show();
                    $("#cancel6").show();
                } else if (num == 5) {
                    aaa = 5;
                    $("#fiveDJ").hide();
                    $("#fiveKZselect").show();
                    $("#cancel5").show();
                } else if (num == 4) {
                    aaa = 4;
                    $("#fourDJ").hide();
                    $("#fourKZselect").show();
                    $("#cancel4").show();
                } else if (num == 3) {
                    aaa = 3;
                    $("#threeDJ").hide();
                    $("#threeKZselect").show();
                    $("#cancel3").show();
                } else if (num == 2) {
                    aaa = 2;
                    $("#twoDJ").hide();
                    $("#twoKZselect").show();
                    $("#cancel2").show();
                } else if (num == 1) {
                    aaa = 1;
                    $("#oneDJ").hide();
                    $("#oneKZselect").show();
                    $("#cancel1").show();
                }

                if (aaa == 6) {
                    for (var i = 0; i < eval(data).length; i++) {

                        var redBall = eval(data)[i].LotteryNo.split("+");
                        var red = redBall[0].replace(/\,/g, " ");

                        if (i == 1) {
                            str6 = " <li><span class=\"fl\">第" + eval(data)[i].LotteryQS + "期"
                                    + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                    + "<span class=\"fr\">(" + eval(data)[i].sixMoney + "元)</span></li>";
                            $("#sixKZselect").append(str6);
                        } else if (i % 3 == 1) {
                            str6 = " <li><span class=\"fl\">第" + eval(data)[i].LotteryQS + "期"
                                    + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                    + "<span class=\"fr\">(" + eval(data)[i].sixMoney + "元)</span></li>";
                            $("#sixKZselect").append(str6);
                        }
                        else {
                            str6 = " <li><span >第" + eval(data)[i].LotteryQS + "期"
                                        + "<span > " + eval(data)[i].LotteryNo + "</span>  "


                            $("#sixKZselect").append(str6);
                        }
                        if ((i + 1) % 3 == 0) {
                            $("#sixKZselect").append("<li></li>");

                        }

                    }
                } else if (aaa == 5) {
                    for (var i = 0; i < eval(data).length; i++) {

                        var redBall = eval(data)[i].LotteryNo.split("+");
                        var red = redBall[0].replace(/\,/g, " ");

                        if (i == 1) {
                            str6 = " <li><span class=\"fl\">第" + eval(data)[i].LotteryQS + "期"
                                    + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                    + "<span class=\"fr\">(" + eval(data)[i].fiveMoney + "元)</span></li>";
                            $("#fiveKZselect").append(str6);
                        } else if (i % 3 == 1) {
                            str6 = " <li><span class=\"fl\">第" + eval(data)[i].LotteryQS + "期"
                                    + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                    + "<span class=\"fr\">(" + eval(data)[i].fiveMoney + "元)</span></li>";
                            $("#fiveKZselect").append(str6);
                        }
                        else {
                            str6 = " <li><span >第" + eval(data)[i].LotteryQS + "期"
                                        + "<span > " + eval(data)[i].LotteryNo + "</span>  "


                            $("#fiveKZselect").append(str6);
                        }
                        if ((i + 1) % 3 == 0) {
                            $("#fiveKZselect").append("<li></li>");

                        }

                    }
                } else if (aaa == 4) {
                    for (var i = 0; i < eval(data).length; i++) {

                        var redBall = eval(data)[i].LotteryNo.split("+");
                        var red = redBall[0].replace(/\,/g, " ");

                        if (i == 1) {
                            str6 = " <li><span class=\"fl\">第" + eval(data)[i].LotteryQS + "期"
                                    + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                    + "<span class=\"fr\">(" + eval(data)[i].fourMoney + "元)</span></li>";
                            $("#fourKZselect").append(str6);
                        } else if (i % 3 == 1) {
                            str6 = " <li><span class=\"fl\">第" + eval(data)[i].LotteryQS + "期"
                                    + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                    + "<span class=\"fr\">(" + eval(data)[i].fourMoney + "元)</span></li>";
                            $("#fourKZselect").append(str6);
                        }
                        else {
                            str6 = " <li><span >第" + eval(data)[i].LotteryQS + "期"
                                        + "<span > " + eval(data)[i].LotteryNo + "</span>  "


                            $("#fourKZselect").append(str6);
                        }
                        if ((i + 1) % 3 == 0) {
                            $("#fourKZselect").append("<li></li>");

                        }

                    }
                } else if (aaa == 3) {
                    for (var i = 0; i < eval(data).length; i++) {

                        var redBall = eval(data)[i].LotteryNo.split("+");
                        var red = redBall[0].replace(/\,/g, " ");

                        if (i == 1) {
                            str6 = " <li><span class=\"fl\">第" + eval(data)[i].LotteryQS + "期"
                                    + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                    + "<span class=\"fr\">(" + eval(data)[i].threeMoney + "元)</span></li>";
                            $("#threeKZselect").append(str6);
                        } else if (i % 3 == 1) {
                            str6 = " <li><span class=\"fl\">第" + eval(data)[i].LotteryQS + "期"
                                    + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                    + "<span class=\"fr\">(" + eval(data)[i].threeMoney + "元)</span></li>";
                            $("#threeKZselect").append(str6);
                        }
                        else {
                            str6 = " <li><span >第" + eval(data)[i].LotteryQS + "期"
                                        + "<span > " + eval(data)[i].LotteryNo + "</span>  "


                            $("#threeKZselect").append(str6);
                        }
                        if ((i + 1) % 3 == 0) {
                            $("#threeKZselect").append("<li></li>");

                        }

                    }
                } else if (aaa == 2) {
                    for (var i = 0; i < eval(data).length; i++) {

                        var redBall = eval(data)[i].LotteryNo.split("+");
                        var red = redBall[0].replace(/\,/g, " ");

                        if (i == 1) {
                            str6 = " <li><span class=\"fl\">第" + eval(data)[i].LotteryQS + "期"
                                    + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                    + "<span class=\"fr\">(" + eval(data)[i].twoMoney + "元)</span></li>";
                            $("#twoKZselect").append(str6);
                        } else if (i % 3 == 1) {
                            str6 = " <li><span class=\"fl\">第" + eval(data)[i].LotteryQS + "期"
                                    + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                    + "<span class=\"fr\">(" + eval(data)[i].twoMoney + "元)</span></li>";
                            $("#twoKZselect").append(str6);
                        }
                        else {
                            str6 = " <li><span >第" + eval(data)[i].LotteryQS + "期"
                                        + "<span > " + eval(data)[i].LotteryNo + "</span>  "


                            $("#twoKZselect").append(str6);
                        }
                        if ((i + 1) % 3 == 0) {
                            $("#twoKZselect").append("<li></li>");

                        }

                    }
                } else if (aaa == 1) {
                    for (var i = 0; i < eval(data).length; i++) {

                        var redBall = eval(data)[i].LotteryNo.split("+");
                        var red = redBall[0].replace(/\,/g, " ");

                        if (i == 1) {
                            str6 = " <li><span class=\"fl\">第" + eval(data)[i].LotteryQS + "期"
                                    + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                    + "<span class=\"fr\">(" + eval(data)[i].oneMoney + "元)</span></li>";
                            $("#oneKZselect").append(str6);
                        } else if (i % 3 == 1) {
                            str6 = " <li><span class=\"fl\">第" + eval(data)[i].LotteryQS + "期"
                                    + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                    + "<span class=\"fr\">(" + eval(data)[i].oneMoney + "元)</span></li>";
                            $("#oneKZselect").append(str6);
                        }
                        else {
                            str6 = " <li><span >第" + eval(data)[i].LotteryQS + "期"
                                        + "<span > " + eval(data)[i].LotteryNo + "</span>  "


                            $("#oneKZselect").append(str6);
                        }
                        if ((i + 1) % 3 == 0) {
                            $("#oneKZselect").append("<li></li>");

                        }

                    }
                }



            }
        })
    }

    function ShowMore(obj,num) {
        
        var showCount;
        var html = "";
        var count=0;
        var sixcount = Math.ceil(($("#sixCount").html()) / pagecount);
        var fivecount = Math.ceil(($("#fiveCount").html()) / pagecount);
        var fourcount = Math.ceil(($("#fourCount").html()) / pagecount);
        var threecount = Math.ceil(($("#threeCount").html()) / pagecount);
        var twocount = Math.ceil(($("#twoCount").html()) / pagecount);
        var onecount = Math.ceil(($("#oneCount").html()) / pagecount);

        if (num == 6) {
            
            show6 += 1;
            showCount = pagecount * show6 + 1;
            $("#sixDJ").html("");
            if (sixcount == show6) {
                $("#showmore6").hide();
            }
            for (var i = 0; i < eval(allNO).length; i++) {
                //alert(eval(allNO)[i].LotteryNo)
                var redBall = eval(allNO)[i].LotteryNo.split("+");
                var red = redBall[0].replace(/\,/g, " ");

                ID = eval(allNO)[i].id;

                if (ID == 6) {
                    count += 1;
                    //alert(showCount + ":" + count);
                    if (count < showCount) {
                        html = " <li><span class=\"fl\">第" + eval(allNO)[i].LotteryQS + "期"
                                        + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                        + "<span class=\"fr\">(" + eval(allNO)[i].sixMoney + "元)</span></li>";
                       
                        $("#sixDJ").append(html);
                    }
                    if (count == showCount - 1) {
                        $("#sixDJ").append("<span id=\"showmore6\" onclick=\"ShowMore(this,6)\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px;"
                             + " height: 26px; background: #0195df;position:absolute;line-height:26px;text-align:center;position:relative;padding:0 0 0px 0; \">加载更多</span>");
                    }
                    
                }
                
            }
            
        } else if (num == 5) {
            //alert(5);
            $("#fiveDJ").html("");
            show5 += 1;
            showCount = pagecount * show5 + 1;
            if (show5 == fivecount) {
                $("#showmore5").hide();
            }
            for (var i = 0; i < eval(allNO).length; i++) {
                var redBall = eval(allNO)[i].LotteryNo.split("+");
                var red = redBall[0].replace(/\,/g, " ");
                ID = eval(allNO)[i].id;
                if (ID == 5) {
                    count += 1;
                    //alert(showCount + ":" + count);
                    if (count < showCount) {
                        html = " <li><span class=\"fl\">第" + eval(allNO)[i].LotteryQS + "期"
                                        + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                        + "<span class=\"fr\">(" + eval(allNO)[i].fiveMoney + "元)</span></li>";

                        $("#fiveDJ").append(html);
                    }
                    if (count == showCount - 1) {
                        $("#fiveDJ").append("<span id=\"showmore5\" onclick=\"ShowMore(this,5)\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px;"
                             + " height: 26px; background: #0195df;position:absolute;line-height:26px;text-align:center;position:relative;padding:0 0 0px 0; \">加载更多</span>");
                    }
                }
            }
        } else if (num == 4) {
            
            $("#fourDJ").html("");
            show4 += 1;
            
            showCount = pagecount * show4 + 1;
            if (show4 == fourcount) {
                
                $("#showmore4").hide();
            }
            
            for (var i = 0; i < eval(allNO).length; i++) {
                var redBall = eval(allNO)[i].LotteryNo.split("+");
                var red = redBall[0].replace(/\,/g, " ");
                ID = eval(allNO)[i].id;
                if (ID == 4) {
                    count += 1;
                    //alert(showCount + ":" + count);
                    if (count < showCount) {
                        html = " <li><span class=\"fl\">第" + eval(allNO)[i].LotteryQS + "期"
                                        + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                        + "<span class=\"fr\">(" + eval(allNO)[i].fourMoney + "元)</span></li>";

                        $("#fourDJ").append(html);
                    }
                    if (count == showCount - 1) {
                        $("#fourDJ").append("<span id=\"showmore4\" onclick=\"ShowMore(this,4)\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px;"
                             + " height: 26px; background: #0195df;position:absolute;line-height:26px;text-align:center;position:relative;padding:0 0 0px 0; \">加载更多</span>");
                    }
                }
            }
        } else if (num == 3) {
            //alert(threecount)
            $("#threeDJ").html("");
            show3 += 1;
            //alert(show3)
            showCount = pagecount * show3 + 1;
            if (show3 == threecount) {
                //alert(111)
                $("#showmore3").hide();
            }

            for (var i = 0; i < eval(allNO).length; i++) {
                var redBall = eval(allNO)[i].LotteryNo.split("+");
                var red = redBall[0].replace(/\,/g, " ");
                ID = eval(allNO)[i].id;
                if (ID == 3) {
                    count += 1;
                    //alert(showCount + ":" + count);
                    if (count < showCount) {
                        html = " <li><span class=\"fl\">第" + eval(allNO)[i].LotteryQS + "期"
                                        + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                        + "<span class=\"fr\">(" + eval(allNO)[i].threeMoney + "元)</span></li>";

                        $("#threeDJ").append(html);
                    }
                    if (count == showCount - 1) {
                        $("#threeDJ").append("<span id=\"showmore3\" onclick=\"ShowMore(this,3)\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px;"
                             + " height: 26px; background: #0195df;position:absolute;line-height:26px;text-align:center;position:relative;padding:0 0 0px 0; \">加载更多</span>");
                    }
                }
            }
        } else if (num == 2) {
            //alert(threecount)
            $("#twoDJ").html("");
            show2 += 1;
            //alert(show3)
            showCount = pagecount * show2 + 1;
            if (show2 == twocount) {
                //alert(111)
                $("#showmore2").hide();
            }

            for (var i = 0; i < eval(allNO).length; i++) {
                var redBall = eval(allNO)[i].LotteryNo.split("+");
                var red = redBall[0].replace(/\,/g, " ");
                ID = eval(allNO)[i].id;
                if (ID == 2) {
                    count += 1;
                    //alert(showCount + ":" + count);
                    if (count < showCount) {
                        html = " <li><span class=\"fl\">第" + eval(allNO)[i].LotteryQS + "期"
                                        + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                        + "<span class=\"fr\">(" + eval(allNO)[i].twoMoney + "元)</span></li>";

                        $("#twoDJ").append(html);
                    }
                    if (count == showCount - 1) {
                        $("#twoDJ").append("<span id=\"showmore2\" onclick=\"ShowMore(this,2)\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px;"
                             + " height: 26px; background: #0195df;position:absolute;line-height:26px;text-align:center;position:relative;padding:0 0 0px 0; \">加载更多</span>");
                    }
                }
            }
        } else if (num == 1) {
            //alert(threecount)
            $("#oneDJ").html("");
            show1 += 1;
            //alert(show3)
            showCount = pagecount * show1 + 1;
            if (show1 == onecount) {
                
                $("#showmore1").hide();
            }

            for (var i = 0; i < eval(allNO).length; i++) {
                var redBall = eval(allNO)[i].LotteryNo.split("+");
                var red = redBall[0].replace(/\,/g, " ");
                ID = eval(allNO)[i].id;
                if (ID == 1) {
                    count += 1;
                    //alert(showCount + ":" + count);
                    if (count < showCount) {
                        html = " <li><span class=\"fl\">第" + eval(allNO)[i].LotteryQS + "期"
                                        + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                        + "<span class=\"fr\">(" + eval(allNO)[i].oneMoney + "元)</span></li>";

                        $("#oneDJ").append(html);
                    }
                    if (count == showCount - 1) {
                        $("#oneDJ").append("<span id=\"showmore1\" onclick=\"ShowMore(this,1)\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px;"
                             + " height: 26px; background: #0195df;position:absolute;line-height:26px;text-align:center;position:relative;padding:0 0 0px 0; \">加载更多</span>");
                    }
                }
            }
        }
        
    }

    //开始对比
    function ToContrast(obj, num) {
        
        ArrayNG = new Array();
       
        var bb = "";
        $(".kjdb_r").hide();
        $(".kjdb_r1").show();
        if (num == 1) {
            bb = $(obj).parent().children().children(".db_text1").text();
            bb = bb.replace(/\s/g, "");
            bb = "[\"" + bb.replace(/,/g, "*") + "\"]";
            if (bb == "") {
                alert("请至少选择一注号码进行比对！");
            }
        }
        else {
            bb = getCookie("ArrayListBigLotto");
            if (bb == "") {
                alert("请至少选择一注号码进行比对！");
            }
            
        }
        //alert(bb);
        var aa = $(".db_text3").html();
        $.ajax({
            url: "/Ajax/BigLotteryContrast.ashx",
            type: "POST",
            //dataType: "json",
            data: {
                QS: aa,
                changeBall:bb
            },
            success: function (Response) {

                QS6 = "";
                QS5 = "";
                QS4 = "";
                QS3 = "";
                QS2 = "";
                QS1 = "";

                allNO = Response;


                //alert(eval(Response).length);
                //alert(Response);
                $("#sixDJ").html("");
                $("#fiveDJ").html("");
                $("#fourDJ").html("");
                $("#threeDJ").html("");
                $("#twoDJ").html("");
                $("#oneDJ").html("");
                var str1 = ""; var str11 = 0;
                var str2 = ""; var str22 = 0;
                var str3 = ""; var str33 = 0;
                var str4 = ""; var str44 = 0;
                var str5 = ""; var str55 = 0;
                var str6 = ""; var str66 = 0;
                
                var ID = "";

                for (var i = 0; i < eval(Response).length; i++) {
                    var redBall = eval(Response)[i].LotteryNo.split("+");
                    var red = redBall[0].replace(/\,/g, " ");

                    //alert(eval(Response[i].LotteryQS));
                    ID = eval(Response)[i].id;
                    
                    if (ID == 1) {
                        QS1 += eval(Response)[i].LotteryQS + ",";
                        str11 = str11 + 1;
                        if (str11 <= pagecount) {
                            str1 = " <li><span class=\"fl\">第" + eval(Response)[i].LotteryQS + "期"
                                 + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                 + "<span class=\"fr\">(" + eval(Response)[i].oneMoney + "元)</span></li>";

                            $("#oneDJ").append(str1);
                        }
                        if (str11 == 1) {
                            $("#oneDJ").append("<li id=\"showmore1\" onclick=\"ShowMore(this,1)\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px; height: 26px;"
                                       + " background: #0195df;line-height:26px;text-align:center;top:970px;left:69%;margin-left:40px; position:absolute;\">加载更多</li>");
                        }
                        $("#oneCount").html(str11);
                        $("#KZ1").show();

                    } else if (ID == 2) {
                        QS2 += eval(Response)[i].LotteryQS + ",";
                        str22 = str22 + 1;
                        if (str22 <= pagecount) {
                            str2 = " <li><span class=\"fl\">第" + eval(Response)[i].LotteryQS + "期"
                                 + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                 + "<span class=\"fr\">(" + eval(Response)[i].twoMoney + "元)</span></li>";

                            $("#twoDJ").append(str2);
                        }
                        if (str22 == 1) {
                            $("#twoDJ").append("<li id=\"showmore2\" onclick=\"ShowMore(this,2)\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px; height: 26px;"
                                       + " background: #0195df;line-height:26px;text-align:center;top:970px;left:69%;margin-left:40px; position:absolute;\">加载更多</li>");
                        }
                        $("#twoCount").html(str22);
                        $("#KZ2").show();
                    } else if (ID == 3) {
                        QS3 += eval(Response)[i].LotteryQS + ",";
                        str33 = str33 + 1;
                        if (str33 <= pagecount) {
                            str3 = " <li><span class=\"fl\">第" + eval(Response)[i].LotteryQS + "期"
                                 + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                 + "<span class=\"fr\">(" + eval(Response)[i].threeMoney + "元)</span></li>";

                            $("#threeDJ").append(str3);
                        }
                        if (str33 == 1) {
                            $("#threeDJ").append("<li id=\"showmore3\" onclick=\"ShowMore(this,3)\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px; height: 26px;"
                                       + " background: #0195df;line-height:26px;text-align:center;top:970px;left:69%;margin-left:40px; position:absolute;\">加载更多</li>");
                        }
                        $("#threeCount").html(str33);
                        $("#KZ3").show();
                    }
                    else if (ID == 4) {
                        QS4 += eval(Response)[i].LotteryQS + ",";
                        str44 = str44 + 1;
                        if (str44 <= pagecount) {
                            
                            str4 = " <li><span class=\"fl\">第" + eval(Response)[i].LotteryQS + "期"
                                 + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                 + "<span class=\"fr\">(" + eval(Response)[i].fourMoney + "元)</span></li>";

                            $("#fourDJ").append(str4);
                        }
                        if (str44 == 1) {
                            $("#fourDJ").append("<li id=\"showmore4\" onclick=\"ShowMore(this,4)\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px; height: 26px;"
                                       + " background: #0195df;line-height:26px;text-align:center;top:970px;left:69%;margin-left:40px; position:absolute;\">加载更多</li>");
                        }
                        $("#fourCount").html(str44);
                        $("#KZ4").show();
                    }
                    else if (ID == 5) {
                        QS5 += eval(Response)[i].LotteryQS + ",";
                        str55 = str55 + 1;
                        
                        $("#fiveCount").html(str55);
                        $("#KZ5").show();
                        if (str55 <= pagecount) {
                            //alert(str55);
                            str5 = " <li><span class=\"fl\">第" + eval(Response)[i].LotteryQS + "期"
                                 + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                 + "<span class=\"fr\">(" + eval(Response)[i].fiveMoney + "元)</span></li>";
                            $("#fiveDJ").append(str5);
                        }

                        if (str55 == 10) {
                            $("#fiveDJ").append("<li id=\"showmore5\" onclick=\"ShowMore(this,5)\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px; height: 26px;"
                                        + " background: #0195df;line-height:26px;text-align:center;top:970px;left:69%;margin-left:40px; position:absolute;\">加载更多</li>");
                        }
                     }
                    else if (ID == 6) {
                        QS6 += eval(Response)[i].LotteryQS + ",";
                        str66 = str66 + 1;
                        $("#sixCount").html(str66);
                        if (str66 <= pagecount) {
                            str6 = " <li><span class=\"fl\">第" + eval(Response)[i].LotteryQS + "期"
                                 + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                 + "<span class=\"fr\">(" + eval(Response)[i].sixMoney + "元)</span></li>";

                            $("#sixDJ").append(str6);
                            $("#KZ6").show();
                            if (str66 == 1) {
                                $("#sixDJ").append("<li id=\"showmore6\" onclick=\"ShowMore(this,6)\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px; height: 26px;"
                                       + " background: #0195df;line-height:26px;text-align:center;top:970px;left:69%;margin-left:40px; position:absolute;\">加载更多</li>");
                            }
                            
                        }
                       
                    }
                    //$("#sixDJ").append("<span id=\"showmore6\" onclick=\"ShowMore(6)\"> 加载更多</span>")
                }
                //alert(pagecount);alert(str66)
                if (str66 <= pagecount) {
                    $("#showmore6").hide();
                }
                if (str55 <= pagecount) {
                    $("#showmore5").hide();
                }
                if (str44 <= pagecount) {
                    $("#showmore4").hide();
                }
                if (str33 <= pagecount) {
                    $("#showmore3").hide();
                }
                if (str22 <= pagecount) {
                    $("#showmore2").hide();
                }
                if (str11 <= pagecount) {
                    $("#showmore1").hide();
                }
                if (str11 == 0) {
                    $("#oneCount").html("0");
                    $("#KZ1").hide();
                    $("#oneDJ").html("暂无中奖记录").css({"text-align": "center"});
                } else {
                    $("#KZ1").show();
                }
                if (str22 == 0) {
                    $("#twoCount").html("0");
                    $("#KZ2").hide();
                    $("#twoDJ").html("暂无中奖记录").css({ "text-align": "center" });
                } else {
                    $("#KZ2").show();
                }
                if (str33 == 0) {
                    $("#threeCount").html("0");
                    $("#KZ3").hide();
                    $("#threeDJ").html("暂无中奖记录").css({ "text-align": "center" });
                } else {
                    $("#KZ3").show();
                }
                if (str44 == 0) {
                    $("#fourCount").html("0");
                    $("#KZ4").hide();
                    $("#fourDJ").html("暂无中奖记录").css({ "text-align": "center" });
                } else {
                    $("#KZ4").show();
                }
                if (str55 == 0) {
                    $("#fiveCount").html("0");
                    $("#KZ5").hide();
                    $("#fiveDJ").html("暂无中奖记录").css({ "text-align": "center" });
                } else {
                    $("#KZ5").show();
                }
                if (str66 == 0) {
                    $("#sixCount").html("0");
                    $("#KZ6").hide();
                    $("#sixDJ").html("暂无中奖记录").css({ "text-align": "center" });
                } else {
                    $("#KZ6").show();
                }
                
            },
            error:function(){


            }
            
            
        });
    }


</script>


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<!--BettingContent-->
<div class="nr" style="padding:30px 0">
  <div style="padding:0 0 10px 0;"> <span class="fl"><img src="images/q2.jpg"></span> <span class="fl kjdb_text1">大乐透工具大全</span> <span class="fr kjdb_text2">其他历史开奖对比器： <a href="doubleBballTuoDan.aspx">双色球</a> <%--| <a href="SevenColorfulTuoDan.aspx">七乐彩</a>--%> </span>
    <div class="cl"></div>
  </div>
  <div>
   
    <div>
       <div class="top_bg"> <a href="#" class="top_list1">开奖对比</a> <a href="jjjs_ssq_zigou.aspx" class="top_list">奖金计算</a><a href="#" class="top_list">专业媒体预测</a>
      <div class="cl"></div>
    </div>
      <div class="fxui-tab-nav">
        <div>
          <div class="wh">
            <div class="kjdb_title1">
             <div class="wh1 fl" style="padding:0;"> <a href="#" class="wh3" style="color:#fff;">普通对比</a><a href="BatchContrast.aspx" class="wh2">多注批量对比</a>
          <div class="cl"></div>
        </div>
              <div class="cl"></div>
            </div>
            <div class="fxui-tab-nav1">
              <div class="kjdb_nr">
                <div class="kjdb_l">
                  <div class="kjdb_input">
                    <input type="radio" name="radio2" id="radioD" value="radio3" onclick="tiaoye(0)" />
                    <label for="radio">标准选号</label>
      
                    <input type="radio" name="radio2" id="radioF" value="radio4" checked="checked" onclick="tiaoye(1)" />
                    <label for="radio">拖胆选号</label>
                    <div class="cl"></div>
                  </div>
                  <div class="kjdb_line">
                    <div class="betting_choose_ball_box">
                      <div class="betting_choose_redball">
                        <h2><b>红球区</b> <span style="font-size:14px">最多5个胆码、最少1个拖码，胆码加拖码不少于6个</span></h2>
                        <div>
                          <div class="betting_prompt_left">
                            <h4 class="choose">选号</h4>
                            <h3>
                              <p>遗漏</p>
                              <div><b>遗漏：</b>指该号码自上次开出以来至本次未出现的期数</div>
                            </h3>
                              <h3 style="color:#ff0000;">设胆</h3>
                          </div>
                          <input type="hidden" id="ZXRedBll" name="ZXRedBll"/>
                          <input type="hidden" id="ZXBlueBll" name="ZXBlueBll"/>
                          <input type="hidden" id="lotteryStr" name="lotteryStr"/>
                          <input type="hidden" id="DTRed" name="DTRed"/>
                          <ul class="betting_choose_ball">
                            
                            <li> <em id="RedBall1" class="ball_btn" onclick="javascript:addRedBall(this,1,0,0);">01</em> <span id="MissNper1" runat="server"></span><input type="checkbox" class="red" id="DanTuo1" onclick="addRedBall(this,1,0,1)" /></li>
                            <li> <em id="RedBall2" class="ball_btn" onclick="javascript:addRedBall(this,2,0,0);">02</em> <span id="MissNper2" runat="server"></span><input type="checkbox"  class="red"  id="DanTuo2" onclick="addRedBall(this,2,0,1)"  />  </li>
                            <li> <em id="RedBall3" class="ball_btn" onclick="javascript:addRedBall(this,3,0,0);">03</em> <span id="MissNper3" runat="server"></span> <input type="checkbox" class="red"  id="DanTuo3" onclick="addRedBall(this,3,0,1)"  /></li>
                            <li> <em id="RedBall4" class="ball_btn" onclick="javascript:addRedBall(this,4,0,0);">04</em> <span id="MissNper4" runat="server"></span> <input type="checkbox" class="red"  id="DanTuo4" onclick="addRedBall(this,4,0,1)" /></li>
                            <li> <em id="RedBall5" class="ball_btn" onclick="javascript:addRedBall(this,5,0,0);">05</em> <span id="MissNper5" runat="server"></span> <input type="checkbox" class="red"  id="DanTuo5" onclick="addRedBall(this,5,0,1)"  /></li>
                            <li> <em id="RedBall6" class="ball_btn" onclick="javascript:addRedBall(this,6,0,0);">06</em> <span id="MissNper6" runat="server"></span> <input type="checkbox" class="red"  id="DanTuo6" onclick="addRedBall(this,6,0,1)" /></li>
                            <li> <em id="RedBall7" class="ball_btn" onclick="javascript:addRedBall(this,7,0,0);">07</em> <span id="MissNper7" runat="server"></span><input type="checkbox" class="red"  id="DanTuo7" onclick="addRedBall(this,7,0,1)" /> </li>
                            <li> <em id="RedBall8" class="ball_btn" onclick="javascript:addRedBall(this,8,0,0);">08</em> <span id="MissNper8" runat="server"></span> <input type="checkbox" class="red"  id="DanTuo8" onclick="addRedBall(this,8,0,1)"/></li>
                            <li> <em id="RedBall9" class="ball_btn" onclick="javascript:addRedBall(this,9,0,0);">09</em> <span id="MissNper9" runat="server"></span><input type="checkbox" class="red"  id="DanTuo9" onclick="addRedBall(this,9,0,1)"/> </li>
                            <li> <em id="RedBall10" class="ball_btn" onclick="javascript:addRedBall(this,10,0,0);">10</em> <span id="MissNper10" runat="server"></span> <input type="checkbox" class="red"  id="DanTuo10" id="DanTuo10" onclick="addRedBall(this,10,0,1)"/></li>
                            <li> <em id="RedBall11" class="ball_btn" onclick="javascript:addRedBall(this,11,0,0);">11</em> <span id="MissNper11" runat="server"></span><input type="checkbox" class="red"  id="DanTuo11" onclick="addRedBall(this,11,0,1)" /> </li>
                            <li> <em id="RedBall12" class="ball_btn" onclick="javascript:addRedBall(this,12,0,0);">12</em> <span id="MissNper12" runat="server"></span><input type="checkbox" class="red"  id="DanTuo12" onclick="addRedBall(this,12,0,1)" /> </li>
                            <li> <em id="RedBall13" class="ball_btn" onclick="javascript:addRedBall(this,13,0,0);">13</em> <span id="MissNper13" runat="server"></span> <input type="checkbox" class="red"  id="DanTuo13" onclick="addRedBall(this,13,0,1)" /></li>
                            <li> <em id="RedBall14" class="ball_btn" onclick="javascript:addRedBall(this,14,0,0);">14</em> <span id="MissNper14" runat="server"></span><input type="checkbox" class="red"  id="DanTuo14" onclick="addRedBall(this,14,0,1)" /> </li>
                            <li> <em id="RedBall15" class="ball_btn" onclick="javascript:addRedBall(this,15,0,0);">15</em> <span id="MissNper15" runat="server"></span> <input type="checkbox" class="red"  id="DanTuo15" onclick="addRedBall(this,15,0,1)" /></li>
                            <li> <em id="RedBall16" class="ball_btn" onclick="javascript:addRedBall(this,16,0,0);">16</em> <span id="MissNper16" runat="server"></span> <input type="checkbox" class="red"  id="DanTuo16" onclick="addRedBall(this,16,0,1)" /></li>
                            <li> <em id="RedBall17" class="ball_btn" onclick="javascript:addRedBall(this,17,0,0);">17</em> <span id="MissNper17" runat="server"></span><input type="checkbox" class="red"  id="DanTuo17" onclick="addRedBall(this,17,0,1)" /> </li>
                            <li> <em id="RedBall18" class="ball_btn" onclick="javascript:addRedBall(this,18,0,0);">18</em> <span id="MissNper18" runat="server"></span> <input type="checkbox" class="red"  id="DanTuo18" onclick="addRedBall(this,18,0,1)" /></li>
                            <li> <em id="RedBall19" class="ball_btn" onclick="javascript:addRedBall(this,19,0,0);">19</em> <span id="MissNper19" runat="server"></span> <input type="checkbox" class="red"  id="DanTuo19" onclick="addRedBall(this,19,0,1)"  /></li>
                            <li> <em id="RedBall20" class="ball_btn" onclick="javascript:addRedBall(this,20,0,0);">20</em> <span id="MissNper20" runat="server"></span> <input type="checkbox" class="red"   id="DanTuo20" onclick="addRedBall(this,20,0,1)" /></li>
                            <li> <em id="RedBall21" class="ball_btn" onclick="javascript:addRedBall(this,21,0,0);">21</em> <span id="MissNper21" runat="server"></span><input type="checkbox" class="red"  id="DanTuo21"  onclick="addRedBall(this,21,0,1)" /> </li>
                            <li> <em id="RedBall22" class="ball_btn" onclick="javascript:addRedBall(this,22,0,0);">22</em> <span id="MissNper22" runat="server"></span><input type="checkbox" class="red"  id="DanTuo22" onclick="addRedBall(this,22,0,1)"  /> </li>
                            <li> <em id="RedBall23" class="ball_btn" onclick="javascript:addRedBall(this,23,0,0);">23</em> <span id="MissNper23" runat="server"></span> <input type="checkbox" class="red"  id="DanTuo23" onclick="addRedBall(this,23,0,1)"  /></li>
                            <li> <em id="RedBall24" class="ball_btn" onclick="javascript:addRedBall(this,24,0,0);">24</em> <span id="MissNper24" runat="server"></span><input type="checkbox" class="red"  id="DanTuo24" onclick="addRedBall(this,24,0,1)"  /> </li>
                            <li> <em id="RedBall25" class="ball_btn" onclick="javascript:addRedBall(this,25,0,0);">25</em> <span id="MissNper25" runat="server"></span> <input type="checkbox" class="red"  id="DanTuo25" onclick="addRedBall(this,25,0,1)"  /></li>
                            <li> <em id="RedBall26" class="ball_btn" onclick="javascript:addRedBall(this,26,0,0);">26</em> <span id="MissNper26" runat="server"></span><input type="checkbox" class="red"   id="DanTuo26" onclick="addRedBall(this,26,0,1)" /> </li>
                            <li> <em id="RedBall27" class="ball_btn" onclick="javascript:addRedBall(this,27,0,0);">27</em> <span id="MissNper27" runat="server"></span><input type="checkbox" class="red"   id="DanTuo27" onclick="addRedBall(this,27,0,1)" /> </li>
                            <li> <em id="RedBall28" class="ball_btn" onclick="javascript:addRedBall(this,28,0,0);">28</em> <span id="MissNper28" runat="server"></span> <input type="checkbox" class="red"  id="DanTuo28" onclick="addRedBall(this,28,0,1)"  /></li>
                            <li> <em id="RedBall29" class="ball_btn" onclick="javascript:addRedBall(this,29,0,0);">29</em> <span id="MissNper29" runat="server"></span><input type="checkbox" class="red"  id="DanTuo29" onclick="addRedBall(this,29,0,1)"  /> </li>
                            <li> <em id="RedBall30" class="ball_btn" onclick="javascript:addRedBall(this,30,0,0);">30</em> <span id="MissNper30" runat="server"></span><input type="checkbox" class="red"  id="DanTuo30" onclick="addRedBall(this,30,0,1)"  /> </li>
                            <li> <em id="RedBall31" class="ball_btn" onclick="javascript:addRedBall(this,31,0,0);">31</em> <span id="MissNper31" runat="server"></span><input type="checkbox" class="red"   id="DanTuo31" onclick="addRedBall(this,31,0,1)"/> </li>
                            <li> <em id="RedBall32" class="ball_btn" onclick="javascript:addRedBall(this,32,0,0);">32</em> <span id="MissNper32" runat="server"></span> <input type="checkbox" class="red"  id="DanTuo32" onclick="addRedBall(this,32,0,1)" /></li>
                            <li> <em id="RedBall33" class="ball_btn" onclick="javascript:addRedBall(this,33,0,0);">33</em> <span id="MissNper33" runat="server"></span><input type="checkbox" class="red"  id="DanTuo33" onclick="addRedBall(this,33,0,1)" /> </li>
                            <li> <em id="RedBall34" class="ball_btn" onclick="javascript:addRedBall(this,34,0,0);">34</em> <span id="MissNper34" runat="server"></span> <input type="checkbox" class="red"  id="DanTuo34" onclick="addRedBall(this,34,0,1)" /></li>
                            <li> <em id="RedBall35" class="ball_btn" onclick="javascript:addRedBall(this,35,0,0);">35</em> <span id="MissNper35" runat="server"></span><input type="checkbox" class="red"  id="DanTuo35" onclick="addRedBall(this,35,0,1)" /> </li>
                            <%--  <div class="cl"></div>--%>
                          </ul>
                          <div class="cl"></div>
                        </div>
                        <div style="padding:0 0 20px 110px;">
                          <select name="select" id="selectRed" class="kjdb_input2">
                              <option>5</option>
                              <option>6</option>
                              <option>7</option>
                              <option>8</option>
                              <option>9</option>
                              <option>10</option>
                              <option>11</option>
                              <option>12</option>
                              <option>13</option>
                              <option>14</option>
                              <option>15</option>
                              <option>16</option>
                              <option>17</option>
                              <option>18</option>
                              <option>19</option>
                              <option>20</option>
                          </select>
                          <div class="kjdb_input3"><a href="#" onclick="RandomRed(this,6,0)">机选红球</a></div>
                          <a href="#" style="color:#2255aa;" onclick="ClaerRedorBlue(0)">清空</a>
                          <div class="cl"></div>
                        </div>
                      </div>
                      <div class="betting_choose_blueball">
                        <h2><b style="color:#0195df;">蓝球区</b><span style="font-size:14px"> 至少选择1个球</span></h2>
                        <ul class="betting_choose_blue_ball">
                          <li> <em id="BlueBall1" class="ball_btn" onclick="javascript:addRedBall(this,1,1,0);">01</em> <span id="MissNperBlue1" runat="server"> </span> <input type="checkbox" id="DanTuoBlue1" class="blue" onclick="addRedBall(this,1,1,1)"  /></li>
                          <li> <em id="BlueBall2" class="ball_btn" onclick="javascript:addRedBall(this,2,1,0);">02</em> <span id="MissNperBlue2" runat="server"></span><input type="checkbox" id="DanTuoBlue2" class="blue"  onclick="addRedBall(this,2,1,1)"  /> </li>
                          <li> <em id="BlueBall3" class="ball_btn" onclick="javascript:addRedBall(this,3,1,0);">03</em> <span id="MissNperBlue3" runat="server"></span><input type="checkbox" id="DanTuoBlue3" class="blue"  onclick="addRedBall(this,3,1,1)"  /> </li>
                          <li> <em id="BlueBall4" class="ball_btn" onclick="javascript:addRedBall(this,4,1,0);">04</em> <span id="MissNperBlue4" runat="server"></span><input type="checkbox" id="DanTuoBlue4"  class="blue"  onclick="addRedBall(this,4,1,1)"  /> </li>
                          <li> <em id="BlueBall5" class="ball_btn" onclick="javascript:addRedBall(this,5,1,0);">05</em> <span id="MissNperBlue5" runat="server"></span><input type="checkbox" id="DanTuoBlue5"  class="blue"  onclick="addRedBall(this,5,1,1)"  /> </li>
                          <li> <em id="BlueBall6" class="ball_btn" onclick="javascript:addRedBall(this,6,1,0);">06</em> <span id="MissNperBlue6" runat="server"></span><input type="checkbox" id="DanTuoBlue6" class="blue"  onclick="addRedBall(this,6,1,1)"  /> </li>
                          <li> <em id="BlueBall7" class="ball_btn" onclick="javascript:addRedBall(this,7,1,0);">07</em> <span id="MissNperBlue7" runat="server"></span><input type="checkbox" id="DanTuoBlue7" class="blue"  onclick="addRedBall(this,7,1,1)"  /> </li>
                          <li> <em id="BlueBall8" class="ball_btn" onclick="javascript:addRedBall(this,8,1,0);">08</em> <span id="MissNperBlue8" runat="server"></span> <input type="checkbox" id="DanTuoBlue8" class="blue"  onclick="addRedBall(this,8,1,1)"  /></li>
                          <li> <em id="BlueBall9" class="ball_btn" onclick="javascript:addRedBall(this,9,1,0);">09</em> <span id="MissNperBlue9" runat="server"></span><input type="checkbox" id="DanTuoBlue9" class="blue"  onclick="addRedBall(this,9,1,1)"  /> </li>
                          <li> <em id="BlueBall10" class="ball_btn" onclick="javascript:addRedBall(this,10,1,0);">10</em> <span id="MissNperBlue10" runat="server"></span> <input type="checkbox" id="DanTuoBlue10" class="blue"  onclick="addRedBall(this,10,1,1)"  /></li>
                          <li> <em id="BlueBall11" class="ball_btn" onclick="javascript:addRedBall(this,11,1,0);">11</em> <span id="MissNperBlue11" runat="server"></span> <input type="checkbox" id="DanTuoBlue11"  class="blue" onclick="addRedBall(this,11,1,1)"  /></li>
                          <li> <em id="BlueBall12" class="ball_btn" onclick="javascript:addRedBall(this,12,1,0);">12</em> <span id="MissNperBlue12" runat="server"></span><input type="checkbox" id="DanTuoBlue12"  class="blue" onclick="addRedBall(this,12,1,1)"  /> </li>
                            <div class="cl"></div>
                        </ul>
                        <div style="padding:0 0 20px 40px;">
                          <select name="select" id="selectBlue" class="kjdb_input2">
                              <option>2</option>
                              <option>3</option>
                              <option>4</option>
                              <option>5</option>
                              <option>6</option>
                              <option>7</option>
                              <option>8</option>
                              <option>9</option>
                              <option>10</option>
                              <option>11</option>
                              <option>12</option>
                              <option>13</option>
                              <option>14</option>
                              <option>15</option>
                              <option>16</option>
                          </select>
                          <div class="kjdb_input4"><a href="#" onclick="RandomRed(this,2,1)">机选蓝球</a></div>
                          <a href="#" style="color:#2255aa;" onclick="ClaerRedorBlue(1)">清空</a>
                          <div class="cl"></div>
                        </div>
                      </div>
                        <div style="clear:both"></div>
                    </div>
                  </div>
                  <div class="kjdb_text3 tc">您选择了 
                      <span class="kjdb_text4" id="RedLength">0</span> 个红球
                      ( <span class="kjdb_text4" id="DMLength">0</span>个红球胆码，<span class="kjdb_text4" id="TMLength">0</span>个红球拖码 )
                       <span class="kjdb_text5" id="BlueLength">0</span> 个蓝球( <span class="kjdb_text5" id="DMBlueLength">0</span>个篮球胆码， <span class="kjdb_text5" id="TMBlueLength">0</span>个蓝球拖码)，共 <span class="kjdb_text4" id="BettingCount">0</span> 注，
                      共 <span class="kjdb_text4" id="PriceCount">0</span> 元</div>
                  <input type="button" class="kjdb_btn" onclick="ConfirmPick()" value="确认选号" />
                  <%--<textarea name="textarea" id="textarea" class="kjdb_textarea" rows="10" cols="10"></textarea>--%>
                    <div class="db_k">
                       <%-- <ul>--%>
                         <%--   <li> <span class="fl"><b>单式</b><span class="db_text1"> 05 06 07 16 17 18</span> + <span class="db_text2">05</span> [1注,2元]</span> <a href="#">删除</a><a href="#">修改</a><a href="#">对比</a></li>
                            <li> <span class="fl"><b>单式</b><span class="db_text1"> 05 06 07 16 17 18</span> + <span class="db_text2">05</span> [1注,2元]</span> <a href="#">删除</a><a href="#">修改</a><a href="#">对比</a></li>
                        --%>
                         <%--</ul>--%>
                    </div>
                  <div class="tr kjdb_text6"><a href="#" onclick="ClearCookie()">清空列表</a></div>
                  <div class="kjdb_input1"> <span class="fl">对比最近： </span>

                    <input type="radio" name="radio" id="radio1" value="radio" onclick="ChangeQS(1)"/>
                    <label for="radio">所有期数 </label>
                    <input type="radio" name="radio" id="radio2"  value="radio" checked="checked" onclick="ChangeQS(300)"/>
                    <label for="radio">300期</label>
                    <input type="radio" name="radio" id="radio3" value="radio" onclick="ChangeQS(100)"/>
                    <label for="radio">100期</label>
                    <input type="radio" name="radio" id="radio4" value="radio" onclick="ChangeQS(50)"/>
                    <label for="radio">50期</label>
                    <input type="radio" name="radio" id="radio5" value="radio" onclick="ChangeQS(30)"/>
                    <label for="radio">30期</label>
                    <div class="cl"></div>
                  </div>
                  <input type="button" class="kjdb_btn1" value="开始对比" onclick="ToContrast()">
                   <%-- <asp:Button ID="btnContrast" runat="server" class="kjdb_btn1" Text="开始对比" OnClick="ToContrast()" />--%>
                </div>
                  <div class="kjdb_r">
                      请先在左侧选择号码进行对比后，在此查看结果！<br />
                      <br />
                      如果您验证的号码在历史上经常命中大奖或历史上中奖概率极低，建议您使用 “追号功能”。
                  </div>
             <div class="kjdb_r1" style="display:none;">
          <div class="db_text3 tc">300期对比结果</div>
                
          <ul class="db_r_list">
            <li>一等奖：<span id="oneCount" class="db_text4"></span> 次 </li>
            <li>二等奖：<span id="twoCount" class="db_text4"></span>次</li>
            <li>三等奖：<span id="threeCount" class="db_text4"></span> 次 </li>
            <li>四等奖：<span id="fourCount" class="db_text4"></span> 次</li>
            <li>五等奖：<span id="fiveCount" class="db_text4"></span> 次 </li>
            <li> 六等奖：<span id="sixCount" class="db_text4"></span> 次</li>
            <div class="cl"></div>
          </ul>
          <div class="fxui-tab">
            <div class="fxui-tab-hand"> <span class="fxui-tab-tit">一等</span> <span class="fxui-tab-tit">二等</span> <span class="fxui-tab-tit">三等</span> <span class="fxui-tab-tit">四等</span><span class="fxui-tab-tit">五等</span><span class="fxui-tab-tit">六等</span>
              <div class="cl"></div>
            </div>
            <div class="fxui-tab-nav">
              <div class="db_text5"><span class="">命中一等奖（ <span class="db_text1">6</span> 红 <span class="db_text2">1</span> 蓝）</span>
                 <div><span id="KZ1"><input type="button"  class="db_text6 fr" onclick="ExtensionQuery(this,1)" style="border:none;"  value="扩展查询" /></span>
                     <input type="button" id="cancel1"  class="db_text6 fr" style="display:none;margin:0 20px 0 0;border:none;" onclick="Cancel(1)" value="取消" /></div>
                <div class="cl"></div>
              </div>
              <ul class="db_qs" id="oneDJ"  style="border:solid 1px #e5e5e5;height:620px;overflow-y:scroll;" >
              </ul>
                <ul id="oneKZselect" class="db_qs" style="border:solid 1px #e5e5e5;height:650px;overflow-y:scroll;display:none;">
                </ul>
            </div>
            <div class="fxui-tab-nav">
              <div class="db_text5"><span class="">命中二等奖（ <span class="db_text1">6</span> 红 <span class="db_text2">0</span> 蓝）</span>
                  <div><span id="KZ2"><input type="button"  class="db_text6 fr" onclick="ExtensionQuery(this,2)" style="border:none;"  value="扩展查询" /></span>
                       <input type="button" id="cancel2"  class="db_text6 fr" style="display:none;margin:0 20px 0 0;border:none;" onclick="Cancel(2)" value="取消" /></div>
                <div class="cl"></div>
              </div>
              <ul class="db_qs"  id="twoDJ"  style="border:solid 1px #e5e5e5;height:620px;overflow-y:scroll;" >
              </ul>
                <ul id="twoKZselect" class="db_qs" style="border:solid 1px #e5e5e5;height:650px;overflow-y:scroll;display:none;">
                </ul>
            </div>
            <div class="fxui-tab-nav">
              <div class="db_text5"><span class="">命中三等奖（ <span class="db_text1">5</span> 红 <span class="db_text2">1</span> 蓝）</span>
                  <div><span id="KZ3" ><input type="button" class="db_text6 fr"  onclick="ExtensionQuery(this,3)"   style="border:none;"  value="扩展查询" /></span>
                      <input type="button" id="cancel3"  class="db_text6 fr" style="display:none;margin:0 20px 0 0;border:none;" onclick="Cancel(3)" value="取消" /></div>
                <div class="cl"></div>
              </div>
              <ul class="db_qs"  id="threeDJ"  style="border:solid 1px #e5e5e5;height:620px;overflow-y:scroll;">
              </ul>
                 <ul id="threeKZselect" class="db_qs" style="border:solid 1px #e5e5e5;height:650px;overflow-y:scroll;display:none;">
                </ul>
            </div>
            <div class="fxui-tab-nav">
              <div class="db_text5"><span class="">命中四等奖（ <span class="db_text1">4</span> 红 <span class="db_text2">1</span> 蓝或<span class="db_text1">5</span>红）</span>
                  <div><span id="KZ4"><input type="button"  class="db_text6 fr" onclick="ExtensionQuery(this,4)"  style="border:none;"  value="扩展查询" /></span>
                       <input type="button" id="cancel4"  class="db_text6 fr" style="display:none;margin:0 20px 0 0;border:none;" onclick="Cancel(4)" value="取消" /></div>
                <div class="cl"></div>
              </div>
              <ul class="db_qs" id="fourDJ"  style="border:solid 1px #e5e5e5;height:620px;overflow-y:scroll;">
              </ul>
                <ul id="fourKZselect" class="db_qs" style="border:solid 1px #e5e5e5;height:650px;overflow-y:scroll;display:none;">
                </ul>
            </div>
            <div class="fxui-tab-nav">
              <div class="db_text5"><span class="">命中五等奖（ <span class="db_text1">3</span> 红 <span class="db_text2">1</span> 蓝或<span class="db_text1">4</span>红）</span>
                  <div><span id="KZ5"  ><input type="button" onclick="ExtensionQuery(this,5)" class="db_text6 fr" style="border:none;"  value="扩展查询" /></span>
                       <input type="button" id="cancel5"  class="db_text6 fr" style="display:none;margin:0 20px 0 0;border:none;" onclick="Cancel(5)" value="取消" /></div>
                <div class="cl"></div>
              </div>
              <ul class="db_qs" id="fiveDJ" style="border:solid 1px #e5e5e5;height:620px;overflow-y:scroll;">
              </ul>
                
                <ul id="fiveKZselect" class="db_qs" style="border:solid 1px #e5e5e5;height:650px;overflow-y:scroll;display:none;">
                </ul>
            </div>
            <div class="fxui-tab-nav">
              <div class="db_text5"><span class="">命中六等奖（ <span class="db_text1">2</span> 红 <span class="db_text2">1</span> 蓝或<span class="db_text1">1</span>红<span class="db_text2">1</span>蓝或<span class="db_text2">1</span>蓝）</span>
                  <div><span id="KZ6"  ><input type="button"  onclick="ExtensionQuery(this,6)"  class="db_text6 fr" style="border:none;" value="扩展查询" /></span>
                      <input type="button" id="cancel6"  class="db_text6 fr" style="display:none;margin:0 20px 0 0;border:none;" onclick="Cancel(6)" value="取消" />
                  </div>
                <div class="cl"></div>
              </div>
              <ul id="sixDJ" class="db_qs"  style="border:solid 1px #e5e5e5;height:620px;overflow-y:scroll;" >
              </ul> 
                 <ul id="sixKZselect" class="db_qs" style="border:solid 1px #e5e5e5;height:650px;overflow-y:scroll;display:none;">
                </ul>
            </div>
          </div>
        </div>
        <div class="cl"></div>
              </div>
            </div>
           <%-- <div class="fxui-tab-nav1"> 123 </div>--%>
          </div>
        </div>
      </div>
      
     <%-- <div class="fxui-tab-nav">内容三</div>--%>
      
    </div>
  </div>
</div>
<script type="text/javascript">
$('.fxui-tab').fxuiTab();
</script> 
<script type="text/javascript">
$('.fxui-tab1').fxuiTab1();
</script>
<!--BettingContent-->
   
</asp:Content>
